export class PinData {

  id: string
  action: string
  behavior: string
  owner: string
  outname: string
  outtype: string
  outcon: string
  action2: string
  behavior2: string
  inname: string
  intype: string
  incom: string

  constructor (option: any) {
    this.id = option.seqNo;
    this.action = option?.output?.action;
    this.behavior = option?.output?.behaviorName;
    this.owner = option?.output?.actionOwner;
    this.outname = option?.output?.pinName;
    this.outtype = option?.output?.pinType;
    this.outcon = option?.output?.pinContent;
    this.action2 = option?.input?.action;
    this.behavior2 = option?.input?.behaviorName;
    this.inname = option?.input?.pinName;
    this.intype = option?.input?.pinType;
    this.incom = option?.input?.pinContent;
  }

}

